<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<%@ page import="java.util.Calendar, com.scalar.chiptrack.utils.ConfigManager"%>

<chiptrack:checkLogon sourcePage="/financeReport.do?action=vertical" />


<HTML><HEAD>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<script>
function finance(){

    document.verticalReport.prompt0.value = document.verticalReport.quarter.value;
    document.verticalReport.prompt1.value = document.verticalReport.year.value;

    var quarter = document.verticalReport.quarter.value;

    var d = new Date();
	var day = d.getDate();
	var month = d.getMonth()+1;
	var year = d.getFullYear();
	var hour = d.getHours();
	var min = d.getMinutes();
	var sec = d.getSeconds();

	var defaultPrompt = day+"/"+month+"/"+year+":"+hour+":"+min+":"+sec;

    document.verticalReport.prompt2.value = defaultPrompt;
    document.verticalReport.action="<%=chipTracContext%>/jsp/report.jsp?nameReport=Finance/Revenue/Vertical_report.rpt";

    document.verticalReport.submit();

}
</script>
<TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>

<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">

<form name="verticalReport" method="post">
<input type="hidden" name="prompt0">
<input type="hidden" name="prompt1">
<input type="hidden" name="prompt2">
<%--End of Modication by lavanya , July 26 --%>
<!-- Top Header Start-->
<%@ include file="/jsp/includes/header.jsp" %>
<!-- Top Header End-->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<td width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

<!-- Side Navigation start -->
<%@ include file="/jsp/finance/finance_reports_menu.jsp" %>
<!-- end of the side navigations -->
<TD bgcolor="#ffffff">
<IMG height=9 src="images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="100%">

<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
<BR>
<!-- from here your body starts -->

<center><span class="NArialW">Vertical Report</span></center>
<img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20>

  <table border="0" width="90%" align=right>
    <tr><td colspan=5><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
    <tr>

      <td width="15%"><font class="NArialL">Quarter</font></td>
      <td width="20%"><font class="NArialL">
	  <select name="quarter" class="txfield">
           <%-- Prabhanjan, Jul 28, 2004 --%>
           <% String currentQtr = (String) request.getAttribute("currentQtr"); %>
           <logic:iterate id="quarterList" name="quarterList">
        	    <logic:notEqual name="quarterList" value="null">
                    <logic:equal name="quarterList" property="value" value="<%=currentQtr%>">
                        <option value = "<bean:write name="quarterList" property="value"/>" SELECTED>
                            <bean:write name="quarterList" property="label"/>
                        </option>
                    </logic:equal>
                    <logic:notEqual name="quarterList" property="value" value="<%=currentQtr%>">
                        <option value = "<bean:write name="quarterList" property="value"/>" >
                            <bean:write name="quarterList" property="label"/>
                        </option>
                    </logic:notEqual>
                </logic:notEqual>
            </logic:iterate>
            <%--
            <option value="1">Qtr 1</option>
            <option value="2">Qtr 2</option>
            <option value="3">Qtr 3</option>
            <option value="4">Qtr 4</option>
            <option value="All">All</option>
            --%>
        </select>
      </td>

      <%--
      <td width="15%"><font class="NArialL">FY Start Month:</font></td>
      <td width="20%"><font class="NArialL">
	  <select name="month" class="txfield">
      	<option value="01">January</option>
		<option value="02">February</option>
		<option value="03">March</option>
		<option value="04">April</option>
		<option value="05">May</option>
		<option value="06">June</option>
		<option value="07">July</option>
		<option value="08">August</option>
		<option value="09">September</option>
		<option value="10">October</option>
		<option value="11">November</option>
		<option value="12">December</option>
      </td>
      --%>
      	<td width="5%">&nbsp;</td>
      <%--Modified by varma(30jun 2004) --%>
      <%--  <td width="13%"><font class="NArialL">FY Start Year (ex.2002)</font></td> --%>
      <td width="13%"><font class="NArialL">FY Start Year </font></td>
      <td width="20%"><font class="NArialL">
        <%-- Modified by Prabhanjan (10 May 2004) --%>
      	<%-- <input type="text" name="year" value='<%=Calendar.getInstance().get (Calendar.YEAR)%>' size="20" class="txfield"></font>&nbsp;&nbsp;&nbsp;</td> --%>
        <html:select name="verticalReport" property="year" styleClass="txfield" value='<%=Integer.toString(Calendar.getInstance().get (Calendar.YEAR))%>'>
            <%-- <html:option value="">-Select-</html:option> --%>
            <html:options collection="years" property="value" labelProperty="label" />
        </html:select>
       <td width="10%">&nbsp;</td>
    </tr>
      <tr>

    <tr><td colspan=5><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=20></td></tr>

	<tr>
      <td colspan=5 align=center>
	  <a href="javascript:finance();" onMouseOver="window.status='Click to Generate Vertical Report ';return true" onMouseOut="window.status='';return true" title= "Click here to Generate Vertical Report "><img border="0" src="<%=chipTracContext%>/jsp/includes/images/submit.gif" width="53" height="17"></a>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <%-- <a href="javascript:cancelAndGoBack();" onMouseOver="window.status='Click here to go back to Finance menu';return true" onMouseOut="window.status='';return true">
      <img border="0" src="<%=chipTracContext%>/jsp/includes/images/cancel.gif" width="53" height="17"/></a> --%>
      <%--Modified by varma(29 jun 2004) --%>
        <a href="javascript:document.verticalReport.reset();"><img src="<%=chipTracContext%>/jsp/includes/images/reset.gif" border='0' onmouseover="window.status='Click to Reset';return true" onmouseout="window.status='';return true"title="Click here to Reset"></a>
      </td>
    </tr>
  </table>


<!-- till here -->
<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>
<!-- Footer starts here -->
<%@ include file="/jsp/includes/footer.jsp" %>
<!-- footer end here -->
</form>
</BODY>
</HTML>
